package greenpages.web.core;

import greenpages.Menu;
import greenpages.MenuItem;

import java.util.List;

import org.osgi.framework.ServiceReference;

public class DynamicMenu implements Menu {

	private List<MenuItem> items;

	@Override
	public List<MenuItem> getItems() {
		return this.items;
	}

	public void setItems(List<MenuItem> items) {
		this.items = items;
	}
	
	public void bind(ServiceReference pRef) {
		System.out.println("Adding [MenuItem] from bundle [" + pRef.getProperty("Bundle-SymbolicName") + "]");

	}
	
	public void unbind(ServiceReference pRef) {
		System.out.println("Removing [MenuItem] from bundle [" + pRef.getProperty("Bundle-SymbolicName") + "]");
	}

}
